package cn.springcloud.fix.es.controller;

import cn.springcloud.fix.es.model.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;

@Slf4j
@RestController
public class MyHTTPController {

    @GetMapping("/v1/get")
    public void get(@RequestParam("one") String one, @RequestParam("two") BigDecimal number) {
        log.info("参数:{},{}", one, number);
    }

    @PostMapping("/v1/post")
    public void check(@RequestBody User user) {
        log.info("{}", user);
    }
}